import axios from '@/libs/api.request'

export class SysWelfarePercentEmployeeAdjustConfigApi {
  static get (path, params = {}) {
    return request.get(path, createGETParams(params))
  }

  static post (path, params = {}) {
    return request.post(path, params)
  }

  // 保存员工调基参保信息
  static getTotalAmount (params) {
    return axios.request({
      url: '/SysWelfarePercentEmployeeAdjustConfig/GetTotalAmount',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据多个员工GUID和参保类型，校验员工是否能同时设置公积金调基参数
  static checkEmployee (params) {
    return axios.request({
      url: '/SysWelfarePercentEmployeeAdjustConfig/CheckEmployee',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据ID获取公积金调基参数信息
  static getConfig (params) {
    return axios.request({
      url: '/SysWelfarePercentEmployeeAdjustConfig/GetConfig',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 保存公积金调基参数信息
  static save (params) {
    return axios.request({
      url: '/SysWelfarePercentEmployeeAdjustConfig/Save',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据多个员工GUID和参保类型，校验员工是否能同时设置参保信息
  static checkEmployee (params) {
    return axios.request({
      url: '/SysWelfarePercentEmployeeAdjustConfig/CheckEmployee',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}
